<?php

/*
 * Helper to hold all config for food & packages
 */

global $_CONFIG;
$_CONFIG = array(
    'packages' => array(
        'SuperSavings' => array(
            'description' => 'packageDescriptionSuperSavings',
            'priceFlat' => 130,
            'priceExtraKid' => 13,
            'includedKids' => 10,
            'mainMeals' => 2,
            'sweets' => 1
        ),
        'B' => array(
            'description' => 'packageDescriptionB',
            'priceFlat' => 160,
            'priceExtraKid' => 16,
            'includedKids' => 10,
            'mainMeals' => 2,
            'sweets' => 2
        ),
        'C' => array(
            'description' => 'packageDescriptionC',
            'priceFlat' => 190,
            'priceExtraKid' => 19,
            'includedKids' => 10,
            'mainMeals' => 3,
            'sweets' => 2
        ),
        'D' => array(
            'description' => 'packageDescriptionD',
            'priceFlat' => 210,
            'priceExtraKid' => 21,
            'includedKids' => 10,
            'mainMeals' => 3,
            'sweets' => 3
        ),
    ),
    'maxMainMeals' => 3,
    'maxSweets' => 3,
    'kidSavouryFood' => array(
        'Party pies',
        'Sausage rolls',
        'Chicken nuggets',
        'Frankfurts',
        'Assorted sandwiches',
        'Fish fingers',
        'Hot chips'
    ),
    'kidSweetFood' => array(
        'Fairy bread',
        'Jelly cups',
        'Seasonal fruit',
        'Ice cream & topping',
        'Potato chip combo'
    ),
    'adultPlatters' => array(
        array(
            'id' => 1,
            'name' => 'Assorted sandwiches',
            'price' => 35,
            'extraText' => ''
        ),
        array(
            'id' => 2,
            'name' => 'Seasonal fruit',
            'price' => 30,
            'extraText' => ''
        ),
        array(
            'id' => 3,
            'name' => 'Nibble plate',
            'price' => 25,
            'extraText' => 'Cheese, dips, etc'
        ),
        array(
            'id' => 4,
            'name' => 'Hot chips',
            'price' => 15,
            'extraText' => ''
        ),
        array(
            'id' => 5,
            'name' => 'Hot party food',
            'price' => 35,
            'extraText' => 'Seasoned wedges, samosas, mini spring rolls, mini dim sims, chicken nuggets served with tomato sauce, sour cream & sweet chilli sauce'
        )
    ),
    'moreOptions' => array(
        array(
            'id' => 1,
            'name' => 'Ice cream cake',
            'price' => 16,
            'extraText' => 'You are more than welcome to bring your own birthday cake along'
        )
    ),
    'characterCost' => 75,
    'characters' => array(
        'Jungle girl',
        'Army guy',
        'Indian princess',
        'Elf',
        'Bumble bee fairy',
        'Ladybug fairy',
        'Blue fairy',
        'Yellow fairy',
        'Princess pink',
        'Princess blue',
        'Pirate',
        'Mermaid pink',
        'Mermaid purple',
        'Sponge bob',
        'Buzz spaceman',
        'Super hero girl',
        'Clown',
        'Cinderella',
        'Cowboy',
    ),
    'logins' => array(
        array(
            'username' => 'admin',
            'password' => 'tricaster',
        ),
        array(
            'username' => 'playcafe',
            'password' => 'bookingspass',
        ),
    ),
    'rooms' => array(
        'Room 1',
        'Room 2',
        'Room 3',
        'Room 4',
        'Room 5',
        'Room 6',
        'Room 7',
        'Room 8'
    )
);

function config($identifier) {
    global $_CONFIG;

    if (isset($_CONFIG[$identifier])) {
        return $_CONFIG[$identifier];
    }
    
    return $_CONFIG[$identifier];
}